import { defHttp } from '@/utils/http/axios';

enum Api {
  listByYear = '/collect/log/list/page/year',
  listByMonth = '/collect/log/list/page/month',
  detailInfo = '/collect/log/list/page/info',
}

export const getListByYear = (params) => {
  return defHttp.get({ url: Api.listByYear, params });
};

export const getListByMonth = (params) => {
  return defHttp.get({ url: Api.listByMonth, params });
};

export const getDetailInfo = (params) => {
  return defHttp.get({ url: Api.detailInfo, params });
};
